<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE html>
<!-- saved from url=(0050)http://localhost:8088/HIS/a/outservice/patientInfo -->
<html style="overflow-x:auto;overflow-y:auto;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>预约挂号查询</title>
    <meta name="author" content="http://his.com/">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=8,IE=9,IE=10">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Cache-Control" content="no-store">
    <script src="../js/my.js"></script>
    <script src="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/hm.js.下载"></script>
    <link href="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/bootstrap.min.css" type="text/css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/bootstrap.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/font-awesome.min.css" type="text/css" rel="stylesheet">
    <link href="/HIS/static/bootstrap/2.3.1/awesome/font-awesome-ie7.min.css" type="text/css" rel="stylesheet" /><![endif]-->
    <link href="/HIS/static/bootstrap/bsie/css/bootstrap-ie6.min.css" type="text/css" rel="stylesheet" />
    <script src="/HIS/static/bootstrap/bsie/js/bootstrap-ie.min.js" type="text/javascript"></script><![endif]-->
    <link href="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/select2.min.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/select2.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/jquery.validate.min.css" type="text/css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/jquery.validate.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/jbox.min.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/jquery.jBox-2.3.min.js.下载" type="text/javascript"></script>
    <script src="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/WdatePicker.js.下载" type="text/javascript"></script>
    <script src="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/mustache.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/his.css" type="text/css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/outDepart/患者挂号信息查询_files/his.js.下载" type="text/javascript"></script>
</head>
<body>
<i id="btnMenu" class="icon-th-list" style="cursor:pointer;float:right;margin:10px;"></i>
<div id="menuContent"></div>
<ul class="nav nav-tabs">
    <li class="active">
        <a style="cursor: pointer;" href="<%=basePath%>makeRegister/showMakeRegister?currPage=1">预约挂号信息</a>
    </li>
</ul>
<form id="searchForm" class="breadcrumb form-search" action="<%=basePath%>makeRegister/showMakeRegister" method="post">
    <input id="currPage" name="currPage" type="hidden" maxlength="50" class="input-mini" value="1" style="width: 150px">
    <input id="model" name="model" type="hidden" maxlength="50" class="input-mini" value="makeRegiseter" style="width: 150px">
    <div>
        <div style="margin-top:8px;">
            <label>挂号编号</label>&nbsp;&nbsp;&nbsp;
            <input id="roId" name="roId" type="text" maxlength="50" class="input-mini" value="" style="width: 150px">
            <label>科室</label>&nbsp;&nbsp;&nbsp;
            <input id="departName" name="departName" type="text" maxlength="50" class="input-mini" value="" style="width: 150px">
            <label>医生</label>&nbsp;&nbsp;&nbsp;
            <input id="doctorName" name="doctorName" type="text" maxlength="50" class="input-mini" value="" style="width: 150px">
            <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询">&nbsp;&nbsp;
        </div>
    </div>
</form>
<script type="text/javascript">top.$.jBox.closeTip();</script>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
<%--        <td>ID</td>--%>
        <th>挂号编号</th>
        <th>会员Id</th>
        <th>科室</th>
        <th>医生</th>
        <th>挂号费</th>
        <th>挂号时间</th>
        <th>状态</th>
        <th style="text-align: center">操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${makeRegisters }" var="make">
        <tr>
            <td style="width: 45px">${make.roId}</td>
            <td style="width: 45px">${make.memberId}</td>
            <td style="width: 60px">${make.departName}</td>
            <td style="width: 60px">${make.doctorName}</td>
            <td style="width: 60px">${make.roCharge}</td>
            <td style="width: 60px">${make.roTime}</td>
            <td style="width: 60px">
                <c:if test="${make.status == '01'}">
                    挂号成功
                </c:if>
                <c:if test="${make.status == '02'}">
                    已看病
                </c:if>
                <c:if test="${make.status == '03'}">
                    已缴费
                </c:if>
                <c:if test="${make.status == '04'}">
                    已发放药品
                </c:if>
            </td>
            <td style="width: 60px; text-align: center">
                <c:if test="${make.status == '01'}">
                    <a href="<%=basePath%>makeRegister/toUpdateMakeRegister?roId=${make.roId}">修改</a>
                </c:if>
                <a href="<%=basePath%>makeRegister/deleteMakeRegister?roId=${make.roId}">删除</a>
                <c:if test="${make.status == '01' or make.status == '02'}">
                    <a href="#" onclick="jf('${make.memberId}', '${make.roCharge}', '${make.roId}', '<%=basePath%>')">缴费</a>
                </c:if>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<jsp:include page="../bottom.jsp"></jsp:include>
<script type="text/javascript">
    //<!-- 无框架时，左上角显示菜单图标按钮。
    if(!(self.frameElement && self.frameElement.tagName=="IFRAME")){
        $("body").prepend("<i id=\"btnMenu\" class=\"icon-th-list\" style=\"cursor:pointer;float:right;margin:10px;\"></i><div id=\"menuContent\"></div>");
        $("#btnMenu").click(function(){
            top.$.jBox('get:/HIS/a/sys/menu/treeselect;JSESSIONID=7acfad905a8a436dab11177cd0ad32b8', {title:'选择菜单', buttons:{'关闭':true}, width:300, height: 350, top:10});
        });
    }
</script>
</body>
</html>
